//client.cpp
#include "header.hpp"
int main()
{
//1.获取key值
key_t key=Getkey();
//2.获取共享内存
int shmid=Getshm(key);
//3.和共享内存关联
char* start=Attachshm(shmid);
//4.通信
    char c = 'A';
    while (c <= 'Z')
    {
        start[c - 'A'] = c;
        c++;
        start[c - 'A'] = '\0';
        sleep(1);
    }


//5.脱离关联
Awayshm(start);
    return 0;
}